-#
-# Recent Comments
-# 

.module
  #recent_comments
    %h1 Recent Comments
    - count = 1
    %ul
      - for comment in Comment.find(:all, :limit => 10, :order => "created_at DESC", :conditions => "published = true")
        %li
          = link_to "#{comment.name} in #{comment.post.title}", comment.post, :name => "comments-#{comment.id}"
        - count += 1
        - break if count > 10